package com.guodu.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="VIEW_Zb_CONTRACT_DETAIL")
public class ViewZbContractDetail {
	
	@Id
	@Column(name="id")
	private Long id;
	
	@Column(name="YEAR")
	private String year;
	
	@Column(name="MONTH")
	private String month;
	
	@Column(name="FUNITS_ID")
	private Long funitsId;
	
	@Column(name="UNITS_ID")
	private Long unitsId;
	
	@Column(name="PURCHASE_TYPE")
	private String purchaseType;
	
	@Column(name="CONTRACT_COUNT")
	private Long contractCount;
	
	@Column(name="CONTRACT_MONEY")
	private BigDecimal contractMoney;
	
	@Column(name="ALL_CONTRACT_COUNT")
	private Long allContractCount;
	
	@Column(name="ALL_CONTRACT_MONEY")
	private BigDecimal allContractMoney;
	
	public ViewZbContractDetail(){
		
	}
	
	public ViewZbContractDetail(Long funitsId, Long unitsId){
		this.funitsId = funitsId;
		this.unitsId = unitsId;
	}
	
	public ViewZbContractDetail(Long funitsId){
		this.funitsId = funitsId;
	}
	
	public String getYear() {
		return year;
	}
	
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setYear(String year) {
		this.year = year;
	}
	public String getMonth() {
		return month;
	}
	public void setMonth(String month) {
		this.month = month;
	}
	public Long getFunitsId() {
		return funitsId;
	}
	public void setFunitsId(Long funitsId) {
		this.funitsId = funitsId;
	}
	public Long getUnitsId() {
		return unitsId;
	}
	public void setUnitsId(Long unitsId) {
		this.unitsId = unitsId;
	}
	public String getPurchaseType() {
		return purchaseType;
	}
	public void setPurchaseType(String purchaseType) {
		this.purchaseType = purchaseType;
	}
	public Long getContractCount() {
		return contractCount;
	}
	public void setContractCount(Long contractCount) {
		this.contractCount = contractCount;
	}
	public BigDecimal getContractMoney() {
		return contractMoney;
	}
	public void setContractMoney(BigDecimal contractMoney) {
		this.contractMoney = contractMoney;
	}
	public Long getAllContractCount() {
		return allContractCount;
	}
	public void setAllContractCount(Long allContractCount) {
		this.allContractCount = allContractCount;
	}
	public BigDecimal getAllContractMoney() {
		return allContractMoney;
	}
	public void setAllContractMoney(BigDecimal allContractMoney) {
		this.allContractMoney = allContractMoney;
	}
	
}
